//
//  PPTimelineComments.m
//  
//
//  Created by GaoYongyue on 16/9/29.
//
//

#import "PPTimelineComments.h"

@implementation PPTimelineComments

// Insert code here to add functionality to your managed object subclass
+ (instancetype)existingAlbumCommentsForCommnetID:(NSNumber *)commentID inAlbumID:(NSNumber *)AlbumID
{
    PPTimelineComments *comments = [self find:@{@"albumID" : AlbumID, @"commentID" : commentID}];

    if(comments == nil) {
        comments = [PPTimelineComments create];
        comments.albumID = AlbumID;
        comments.commentID = commentID;
        [comments.managedObjectContext saveContext];
    }

    return comments;
}
@end
